﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.Data
{
    [Serializable]
   public class InterOption2D:InterpolationOption
    {
        [field: NonSerialized]
        public event EventHandler IDWOptionChanged;

        [field: NonSerialized]
        public event EventHandler KrigingOptionChanged;

        public void ResetConfrm(InterpolationOption option)
        {
            this.IdwOption = (IDWOption)option.IdwOption.Clone();
            if (IDWOptionChanged != null)
                IDWOptionChanged(null, null);
            this.Interpolatetype = option.Interpolatetype;
            this.IsTruncateToDataSetMinMax = option.IsTruncateToDataSetMinMax;
            this.IsTruncateValue = option.IsTruncateValue;
            this.KrigingOption =(KrigingOption) option.KrigingOption.Clone();
            if (KrigingOptionChanged != null)
                KrigingOptionChanged(null, null);
            this.TruncateSetupMax = this.TruncateSetupMax;
            this.TruncateSetupMin = this.TruncateSetupMin;

        }
    }


}
